<template>
	<view class="video_preview">
		<video :src="src" autoplay loop></video>
	</view>
</template>

<script lang="ts" setup>
	import { ref } from 'vue';
	import { onLoad } from '@dcloudio/uni-app';
	const src = ref();

	onLoad((params) => {
		src.value = params.src;
	})
</script>

<style lang="scss" scoped>
	video {
		width: 100vw;
		height: 100vh;
	}
</style>